 import 'dart:ui';

import 'package:flutter/material.dart';

import '../flutter_mvc.dart';

class SecController{
  late BaseController _controller;
  SecController(BaseController controller){
    _controller=controller;
  }

  void setState([VoidCallback? callback]){
    _controller.setState(callback);
  }

  void showLoading({String? text}){
    _controller.showLoading(text:text);
  }


  void dismissLoading(){
    _controller.dismissLoading();
  }

  BuildContext? get context=>_controller.context;

  void pop<T extends Object>([T? result]) {
    _controller.pop(result);
  }

  void setRootState(){
    _controller.setRootState();
  }

}